Skip to content

fix(corpus): tolerate transient database startup - #50

Merged
haasonsaas merged 2 commits into
mainfrom
fix/corpus-startup-retry-20260804
Aug 4, 2026
Merged

fix(corpus): tolerate transient database startup#50
haasonsaas merged 2 commits into
mainfrom
fix/corpus-startup-retry-20260804

Conversation

@haasonsaas

@haasonsaas haasonsaas commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Corpus was crash-looping when its Cloud SQL proxy was present but the database endpoint was not yet accepting connections. Startup now retries the pool connection with a bounded backoff and a per-attempt timeout, allowing the server to reach migrations once the proxy becomes ready while still failing promptly on a persistent outage.

Validation

  • cargo fmt --check
  • cargo clippy -p corpus-core --all-targets -- -D warnings
  • cargo test -p corpus-core — 97 unit tests and all package integration/doc tests passed

Post-deploy validation

After the Corpus image is promoted through the deploy repository, validate the corpus Argo application and corpus-server rollout in production. Confirm the pod reaches Ready without repeated database connection failures and that the Cloud SQL proxy sidecar remains healthy.

@haasonsaas
haasonsaas merged commit f5f284d into main Aug 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant